package com.statistics.bean;

import javax.persistence.Column;

/**
 * @author MәӧωρaЯsε
 * @date 2017/7/20.
 */
public class MaxCurrentPower {

    @Column(name = "room1_current")
    private String room1Current;
    @Column(name = "room2_current")
    private String room2Current;
    @Column(name = "room3_current")
    private String room3Current;
    @Column(name = "room4_current")
    private String room4Current;
    @Column(name = "room5_current")
    private String room5Current;
    @Column(name = "room6_current")
    private String room6Current;
    @Column(name = "room7_current")
    private String room7Current;
    @Column(name = "room8_current")
    private String room8Current;

    @Column(name = "room1_power")
    private String room1Power;
    @Column(name = "room2_power")
    private String room2Power;
    @Column(name = "room3_power")
    private String room3Power;
    @Column(name = "room4_power")
    private String room4Power;
    @Column(name = "room5_power")
    private String room5Power;
    @Column(name = "room6_power")
    private String room6Power;
    @Column(name = "room7_power")
    private String room7Power;
    @Column(name = "room8_power")
    private String room8Power;

    public String getRoom1Current() {
        return room1Current;
    }

    public void setRoom1Current(String room1Current) {
        this.room1Current = room1Current;
    }

    public String getRoom2Current() {
        return room2Current;
    }

    public void setRoom2Current(String room2Current) {
        this.room2Current = room2Current;
    }

    public String getRoom3Current() {
        return room3Current;
    }

    public void setRoom3Current(String room3Current) {
        this.room3Current = room3Current;
    }

    public String getRoom4Current() {
        return room4Current;
    }

    public void setRoom4Current(String room4Current) {
        this.room4Current = room4Current;
    }

    public String getRoom5Current() {
        return room5Current;
    }

    public void setRoom5Current(String room5Current) {
        this.room5Current = room5Current;
    }

    public String getRoom6Current() {
        return room6Current;
    }

    public void setRoom6Current(String room6Current) {
        this.room6Current = room6Current;
    }

    public String getRoom7Current() {
        return room7Current;
    }

    public void setRoom7Current(String room7Current) {
        this.room7Current = room7Current;
    }

    public String getRoom8Current() {
        return room8Current;
    }

    public void setRoom8Current(String room8Current) {
        this.room8Current = room8Current;
    }

    public String getRoom1Power() {
        return room1Power;
    }

    public void setRoom1Power(String room1Power) {
        this.room1Power = room1Power;
    }

    public String getRoom2Power() {
        return room2Power;
    }

    public void setRoom2Power(String room2Power) {
        this.room2Power = room2Power;
    }

    public String getRoom3Power() {
        return room3Power;
    }

    public void setRoom3Power(String room3Power) {
        this.room3Power = room3Power;
    }

    public String getRoom4Power() {
        return room4Power;
    }

    public void setRoom4Power(String room4Power) {
        this.room4Power = room4Power;
    }

    public String getRoom5Power() {
        return room5Power;
    }

    public void setRoom5Power(String room5Power) {
        this.room5Power = room5Power;
    }

    public String getRoom6Power() {
        return room6Power;
    }

    public void setRoom6Power(String room6Power) {
        this.room6Power = room6Power;
    }

    public String getRoom7Power() {
        return room7Power;
    }

    public void setRoom7Power(String room7Power) {
        this.room7Power = room7Power;
    }

    public String getRoom8Power() {
        return room8Power;
    }

    public void setRoom8Power(String room8Power) {
        this.room8Power = room8Power;
    }

    public String getRoomCurrent(int roomNum){
        switch (roomNum){
            case 1:
                return getRoom1Current();
            case 2:
                return getRoom2Current();
            case 3:
                return getRoom3Current();
            case 4:
                return getRoom4Current();
            case 5:
                return getRoom5Current();
            case 6:
                return getRoom6Current();
            case 7:
                return getRoom7Current();
            case 8:
                return getRoom8Current();
        }
        return null;
    }

    public String getRoomPower(int roomNum){
        switch (roomNum){
            case 1:
                return getRoom1Power();
            case 2:
                return getRoom2Power();
            case 3:
                return getRoom3Power();
            case 4:
                return getRoom4Power();
            case 5:
                return getRoom5Power();
            case 6:
                return getRoom6Power();
            case 7:
                return getRoom7Power();
            case 8:
                return getRoom8Power();
        }
        return null;
    }
}
